<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
        "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:h="http://java.sun.com/jsf/html">
<body>
<ui:composition>

    <h:panelGrid columns="2" rendered="#{readonly}">
        <h:outputLabel for="firstName_ro" value="#{messages.first_name}:"/>
        <h:outputText id="firstName_ro" value="#{bean.person.firstName}"/>

        <h:outputLabel for="lastName_ro" value="#{messages.last_name}:"/>
        <h:outputText id="lastName_ro" value="#{bean.person.lastName}"/>


        <h:outputLabel for="manufacturer_ro" value="#{messages.manufacturer}:"/>
        <h:outputText id="manufacturer_ro" value="#{bean.person.car.manufacturer}"/>

        <h:outputLabel for="modelIdentification_ro" value="#{messages.model_identification}:"/>
        <h:outputText id="modelIdentification_ro" value="#{bean.person.car.modelIdentification}"/>
    </h:panelGrid>

    <h:panelGrid columns="3" rendered="#{!readonly}">
        <h:outputLabel for="firstName" value="#{messages.first_name}:"/>
        <h:inputText id="firstName" label="First name" value="#{bean.person.firstName}"/>
        <h:message for="firstName" showSummary="true" showDetail="false" errorStyle="color: red;" warnStyle="color: orange;"/>

        <h:outputLabel for="lastName" value="#{messages.last_name}:"/>
        <h:inputText id="lastName" label="#{messages.last_name}" value="#{bean.person.lastName}"/>
        <h:message for="lastName" showSummary="true" showDetail="false" errorStyle="color: red;" warnStyle="color: orange;"/>

        <h:outputLabel for="manufacturer" value="#{messages.manufacturer}:"/>
        <h:inputText id="manufacturer" label="#{messages.manufacturer}" value="#{bean.person.car.manufacturer}"/>
        <h:message for="manufacturer" showSummary="true" showDetail="false" errorStyle="color: red;" warnStyle="color: orange;"/>

        <h:outputLabel for="modelIdentification" value="#{messages.model_identification}:"/>
        <h:inputText id="modelIdentification" label="#{messages.model_identification}" value="#{bean.person.car.modelIdentification}"/>
        <h:message for="modelIdentification" showSummary="true" showDetail="false" errorStyle="color: red;" warnStyle="color: orange;"/>
    </h:panelGrid>

</ui:composition>
</body>
</html>
